# == Schema Information
#
# Table name: nas
#
#  id          :integer          not null, primary key
#  nasname     :string(128)      not null
#  shortname   :string(32)
#  types       :string(30)
#  ports       :integer
#  secret      :string(60)       default("secret"), not null
#  server      :string(64)
#  community   :string(50)
#  description :string(200)      default("RADIUS Client")
#  account_id  :integer
#  created_at  :datetime
#  updated_at  :datetime
#

class Nas < ActiveRecord::Base
  belongs_to :account

  validates_presence_of :nasname, :secret, :account_id
  validates_inclusion_of :ports, in: 0..65535

end
